#include <math.h>
#include <stdio.h>

void main() {
  FILE * arq = NULL;
  int i, j;
  float nota;
	
  if((arq = fopen("arq_602_3.txt","w")) != NULL) {
	fprintf(arq, "Nota1\tNota2\tNota3\n");
	for(i = 0; i < 4; i++) {
	  for(j = 0; j < 3; j++) {
		printf("Nota %d:\n", j + 1);
		scanf("%f", &nota);
		fprintf(arq, "%f\t", nota);
	  }
	  fprintf(arq,"\n");
	  getchar(); 
	}
	fclose(arq);			
  }
}
